/*jslint vars: true, forin: true, sloppy: true */
/*global angular, engine, top, URLs*/
URLs.dialogRoutePath = "./src/dialog/";

var probe = angular.module("probe", [
	'lemoncase',
	'LCP',
	'oc-dialog',
	'oc-APIs',
	'ui.codemirror',
	'capture',
	'lemonDictionary'
	//'ngMockE2E'
]);

if (window.parent !== window) {
	top.location.href = URLs.serviceEndUrl + '#OK';
}

probe.constant("ACTION_MAP", [
	"click", "input", "rclick", "dblclick",
	"movein", "moveout", "scroll", "select"
]);
probe.constant("GET_FRAME", document.querySelector.bind(document, 'iframe#project'));

probe.config(function (ocDialogProvider, $sceDelegateProvider, $httpProvider, ocAPIProvider) {

	ocDialogProvider.config("ROUTE_PATH", URLs.dialogRoutePath);
	ocDialogProvider.config("BASE_Z_INDEX", 500);

	$httpProvider.defaults.withCredentials = true;
});
